Skip to content

[math] Support multithreaded fits of TGraphErrors with x errors#22651

Merged
guitargeek merged 1 commit into
root-project:masterfrom
guitargeek:issue-10021
Jun 19, 2026
Merged

[math] Support multithreaded fits of TGraphErrors with x errors#22651
guitargeek merged 1 commit into
root-project:masterfrom
guitargeek:issue-10021

Conversation

@guitargeek

Copy link
Copy Markdown
Contributor

Make FitUtil::EvaluateChi2Effective execution-policy aware via TThreadExecutor (same pattern as EvaluateChi2) and thread the policy through Chi2FCN. Point coordinates/errors are read via the thread-safe component accessors, since GetPoint/GetPointError use shared temp buffers. Also honour the SERIAL/MULTITHREAD options for graph fits. Adds exec-policy tests to testFitter.

Closes #10021.

🤖 Done with the help of AI.

@github-actions

github-actions Bot commented Jun 18, 2026

Copy link
Copy Markdown

Test Results

    22 files      22 suites   3d 16h 53m 8s ⏱️
 3 869 tests  3 803 ✅   0 💤 66 ❌
76 423 runs  76 165 ✅ 192 💤 66 ❌

For more details on these failures, see this check.

Results for commit 9103e6f.

♻️ This comment has been updated with latest results.

@dpiparo dpiparo self-requested a review June 19, 2026 14:19

@dpiparo dpiparo left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm. If time allows, perhaps a second look to the comments could be of help.

Comment thread math/mathcore/inc/Fit/Chi2FCN.h
Comment thread math/mathcore/src/FitUtil.cxx
Make FitUtil::EvaluateChi2Effective execution-policy aware via
TThreadExecutor (same pattern as EvaluateChi2) and thread the policy
through Chi2FCN. Point coordinates/errors are read via the thread-safe
component accessors, since GetPoint/GetPointError use shared temp buffers.
Also honour the SERIAL/MULTITHREAD options for graph fits. Adds exec-policy
tests to testFitter.

Closes root-project#10021.

🤖 Done with the help of AI.

@lmoneta lmoneta left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!
Thanks Jonas (and Claude) for adding this support completing the fitting multi-thread support

@guitargeek guitargeek merged commit 111257e into root-project:master Jun 19, 2026
27 of 30 checks passed
@guitargeek guitargeek deleted the issue-10021 branch June 19, 2026 20:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add Multithreading support for TGraphErrors Fitting

3 participants